<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head >
    <link rel="stylesheet" href="../back/css/layui.css" type="text/css" media="all">
    <link rel="stylesheet" type="text/css" href="../back/css/font-awesome.min.css">
    <script src="../back/js/layui.js"></script>
    <script src="../back/js/jquery-3.1.1.min.js"></script>
</head>
<body style="background: #F0F2F5">

<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    ctxPath = /*[[@{/}]]*/ '';
    /*]]>*/

    console.info(ctxPath);
</script>　



    <form enctype="multipart/form-data" class="layui-form"  action="uploadMemberImage.action" method="post" >
        <label class="layui-form-label">图片上传</label>

        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="5" class="CardWord">
        <tr>
            上传文件：<input type="file" id="file" name="file"><br/>
        </tr>
        <div class="layui-form-item">
            <label class="layui-form-label">memberId</label>
            <div class="layui-input-block">
                <input type="text" name="memberId" lay-verify="title" autocomplete="off" placeholder="memberId" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="demo1" type="submit" >提交</button>
            </div>
        </div>


            <div class="ly_myname">
                <h3>上传后的图片</h3>
                <img  th:src="@{${url}}" alt="">
            </div>
    </table>
    </form>



</body>
</html>